package com.mankind.ssm.mapper;

import com.mankind.ssm.pojo.Role;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer roleId);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    List<Role> selectAll();

    int getTotalNumber();

    int getFuzzyQueryTotalNumber(String text);

    List<Role> findByPage(Integer start,Integer length);

    List<Role> fuzzyQueryByPage(Integer start,Integer length,String text);
}